/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package diet.XMLUtils;

import java.util.List;
import diet.dto.DishDTO;
import java.util.ArrayList;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 *
 * @author Vrety
 */
@XmlAccessorType(XmlAccessType.FIELD)
//@XmlType(name = "", propOrder = {
//    "dishes"
//})
@XmlRootElement(name = "dishes")
public class Dishes {

    @XmlElement(required = true)
    private List<DishDTO> dish;

    /**
     * @return the dish
     */
    public List<DishDTO> getDish() {
        if (dish == null) {
            dish = new ArrayList<DishDTO>();
        }
        return this.dish;
    }
}
